package com.github.xuemingyu.springboot.acticitycloud.service;

import com.alibaba.fastjson.JSONObject;
import com.bidanet.bdcms.core.vo.Page;
import com.github.xuemingyu.springboot.acticitycloud.entity.SakuraEntryForm;
import com.taobao.api.ApiException;

public interface SakuraEntryFormService extends BaseService<SakuraEntryForm> {
    /**
     * 获取报名列表
     *
     * @param sakuraEntryForm
     * @param page
     */
    void queryLike(SakuraEntryForm sakuraEntryForm, Page<SakuraEntryForm> page);

    SakuraEntryForm findOne(Long activityId, String userId);

    /**
     * 新增报名信息
     *
     * @param sakuraEntryForm
     */
    void insert(SakuraEntryForm sakuraEntryForm) throws ApiException;

    /**
     * 取消报名
     *
     * @param id
     */
    void cancel(Long id, String userId) throws ApiException;


    void update(SakuraEntryForm sakuraEntryForm);

    JSONObject synchronizationQuery(String startTime, String endTime, String password);


    void insertForm(Long lenth);
}
